<?php

if(!isset($_GET['id']))
{
	echo json_encode(array(
		"title"		=> "Danh sách video",
		"quangcao"	=> "Danh sách video",
		"res"		=> array(
			array(
				"name"	=>"Hot boy nổi loạn ", 
				"img"	=>"https://encrypted-tbn1.google.com/images?q=tbn:ANd9GcQqbAaZLzqcDFDh8MHYEotMrmJHYgSdP1UeEJvJrMsNzEsmY7q0KA", 
				"id"	=>"1", 
				"nguon"	=>"Lượt tải: 1467",
				"cuphap"=>"VD test1",
				"dauso" =>"7777"
				
			),
			array(
				"name"	=>"Vũ điệu hoang dã ", 
				"img"	=>"https://encrypted-tbn1.google.com/images?q=tbn:ANd9GcQtK2LtlgStrKSFXAheX1Y0SN7D80Yf7EFPn9aNJ5i4dXSx-86VVg", 
				"id"	=>"2", 
				"nguon"	=>"Lượt tải: 1355",
				"cuphap"=>"VD test2",
				"dauso" =>"7777"
			),
			array(
				"name"	=>"CHơi em đi anh ơi ", 
				"img"	=>"https://encrypted-tbn1.google.com/images?q=tbn:ANd9GcQtK2LtlgStrKSFXAheX1Y0SN7D80Yf7EFPn9aNJ5i4dXSx-86VVg", 
				"id"	=>"3", 
				"nguon"	=>"Lượt tải: 9999",
				"cuphap"=>"VD test3",
				"dauso" =>"7777"
			),
			array(
				"name"	=>"Hot boy nổi loạn ", 
				"img"	=>"https://encrypted-tbn1.google.com/images?q=tbn:ANd9GcQqbAaZLzqcDFDh8MHYEotMrmJHYgSdP1UeEJvJrMsNzEsmY7q0KA", 
				"id"	=>"4", 
				"nguon"	=>"Lượt tải: 1467",
				"cuphap"=>"VD test1",
				"dauso" =>"7777"
				
			),
			array(
				"name"	=>"Hot boy nổi loạn ", 
				"img"	=>"https://encrypted-tbn1.google.com/images?q=tbn:ANd9GcQqbAaZLzqcDFDh8MHYEotMrmJHYgSdP1UeEJvJrMsNzEsmY7q0KA", 
				"id"	=>"5", 
				"nguon"	=>"Lượt tải: 1467",
				"cuphap"=>"VD test1",
				"dauso" =>"7777"
				
			),
			array(
				"name"	=>"Hot boy nổi loạn ", 
				"img"	=>"https://encrypted-tbn1.google.com/images?q=tbn:ANd9GcQqbAaZLzqcDFDh8MHYEotMrmJHYgSdP1UeEJvJrMsNzEsmY7q0KA", 
				"id"	=>"5", 
				"nguon"	=>"Lượt tải: 1467",
				"cuphap"=>"VD test1",
				"dauso" =>"7777"
				
			) 
			
			
		)
	));
}
else
{
	$link1="";
	$link2="";
	switch($_GET["id"])
	{
		case "1":
			$link1="http://www.youtube.com/watch?v=N6ViN_zHOxo";
			break;
		case "2":
			$link1="http://www.youtube.com/watch?v=WD0ZM03rz2c";
			break;
		case "3":
			$link1="http://www.youtube.com/watch?v=62ZXWlHimxI";
			break;
		case "4":
			$link1="http://www.youtube.com/watch?v=fQFPyVGO_m0";
			break;
		case "5":
			$link1="http://www.youtube.com/watch?v=umH5Mr5cjVE";
			break;
	}
	echo json_encode(array(
		"res" => array(
			array("name"=>"MP4 (Chất lượng cao)","url"=>$link2)
		)
	));
}
							
?>